const install = (Vue, vm) => {
	const h = vm.$u;
	const api = vm.$u.api = {};

	api.index = (params = {}) => h.get('/api/index', params);
	api.authLogin = params => h.post('/api/auth/login', params)
	api.userInfo = () => h.get('api/user')

	// 将各个定义的接口名称，统一放进对象挂载到vm.$u.api(因为vm就是this，也即this.$u.api)下
	// vm.$u.api = {
	// 	index,
	// 	authLogin 
	// };
}

export default {
	install
}
